From 95e8ae6e756364690fc22625a53b9cc98c0c5c02 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 3 Nov 2014 00:25:14 -0500 Subject: [PATCH] GtkIconTheme: Improve an error message Mention the name of the theme when an icon lookup fails. https://bugzilla.gnome.org/show_bug.cgi?id=687963 --- gtk/gtkicontheme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index ea44a81d63..2591086967 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2305,7 +2305,7 @@ gtk_icon_theme_load_icon_for_scale (GtkIconTheme *icon_theme, if (!icon_info) { g_set_error (error, GTK_ICON_THEME_ERROR, GTK_ICON_THEME_NOT_FOUND, - _("Icon '%s' not present in theme"), icon_name); + _("Icon '%s' not present in theme %s"), icon_name, icon_theme->priv->current_theme); return NULL; } @@ -2369,7 +2369,7 @@ gtk_icon_theme_load_surface (GtkIconTheme *icon_theme, if (!icon_info) { g_set_error (error, GTK_ICON_THEME_ERROR, GTK_ICON_THEME_NOT_FOUND, - _("Icon '%s' not present in theme"), icon_name); + _("Icon '%s' not present in theme %s"), icon_name, icon_theme->priv->current_theme); return NULL; } -- 2.30.2